﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Shopping.aspx.cs" Inherits="CSharpDesign.Shopping" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <DIV class="maincolumntitle">
<DIV class="maincolumntitle01" style="color: #ffffff"><SPAN class="macon"></SPAN>购物车</DIV>
<DIV class="maincolumntitle02"><A href="NewShangPinList.aspx"><SPAN 
class="more1"></SPAN></A></DIV></DIV> <table align="center" border="1" cellpadding="0" cellspacing="0" style="width: 724px; height: auto">
        <tr>
            <td align="center" style="vertical-align: bottom; width: 883px; height: 50px; text-align: center">
                &nbsp;<asp:LinkButton ID="lbtnCheck" runat="server" Font-Underline="False" ForeColor="Black"
                    OnClick="lbtnCheck_Click">生成订单</asp:LinkButton>
                <asp:LinkButton ID="lbtnClear" runat="server" Font-Underline="False" ForeColor="Black"
                    OnClick="lbtnClear_Click">清空购物车</asp:LinkButton>
                <br />
                订单号：<asp:Label ID="Label5" runat="server" Width="158px"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="3" style="vertical-align: top; text-align: center">
                <asp:GridView ID="gvOrderInfo" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="3" Font-Size="9pt" OnPageIndexChanging="gvOrderInfo_PageIndexChanging"
                    OnRowCancelingEdit="gvOrderInfo_RowCancelingEdit" OnRowDataBound="gvOrderInfo_RowDataBound"
                    OnRowDeleting="gvOrderInfo_RowDeleting" OnRowEditing="gvOrderInfo_RowEditing"
                    OnRowUpdating="gvOrderInfo_RowUpdating" PageSize="8" Width="100%" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px">
                    <RowStyle ForeColor="#000066" />
                    <Columns>
                        <asp:TemplateField HeaderText="名称">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("SPName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="类别">
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("ShangPinFenLeiName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="价格">
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("SPPrice") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                         
                      
                        <asp:TemplateField HeaderText="数量">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("shuliang") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("shuliang") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField HeaderText="删除" ShowDeleteButton="True">
                            <ControlStyle Font-Underline="False" ForeColor="Black" />
                            <ItemStyle Font-Underline="False" />
                        </asp:CommandField>
                        <asp:CommandField EditText="修改" HeaderText="修改数量" ShowEditButton="True" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3" style="height: 20px; background-color: #f0f5d5">
                &nbsp;<asp:Label ID="Label6" runat="server" Text="合计金额："></asp:Label>
                <asp:Label ID="labMoney" runat="server"></asp:Label>
                &nbsp; &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>


